#include <commctrl.h>

struct Monitor
{
	int index;
	HWND bar;
	HWND tbar;
	HMONITOR hmon;
	MONITORINFOEX info;
	HIMAGELIST icons;
};

extern int num_monitors;
extern struct Monitor *monitors;

void init_monitors(void);
void free_monitors(void);
struct Monitor *from_hmonitor(HMONITOR);
int is_primary(struct Monitor*);
void update_monitor(struct Monitor*);

